package com.itheima.d4_proxy;

public class Star implements StarService{
    private String name;

    public Star() {
    }

    public Star(String name) {
        this.name = name;
    }

    @Override
    public void sing(String name) {
        System.out.println(this.name + "正在唱" + name + "歌");
    }

    @Override
    public String dance() {
        System.out.println(this.name + "正在跳舞");
        return "谢谢";

    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "Star{name = " + name + "}";
    }
}
